package system

import (
	"github.com/gin-gonic/gin"
	api "ruoyi_gin/app/admin/api/system"
	"ruoyi_gin/utils"
)

func InitRole(e *gin.Engine) {

	v := e.Group("system/role")
	{
		auth := v.Group("")
		auth.Use(utils.JWTAuthMiddleware())
		{
			auth.GET("/list", api.ListRole)
			auth.POST("/:roleId", api.GetRoleInfo)
		}
	}

}
